package com.itheima.io;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;

/**
 * @author Anomaly
 * @date 2023/2/9 17:54
 */
public class FileReaderDemo {
    public static void main(String[] args) throws IOException {
        Reader r = new FileReader("file-io/src/test.txt");
        System.out.println(((char) r.read()));
        System.out.println(((char) r.read()));
        System.out.println(((char) r.read()));
        System.out.println(((char) r.read()));

    }
}
